package com.yingjie.yingjieauth.service.impl;

import com.yingjie.commonbase.bo.UserAuthBo;
import com.yingjie.commonbase.model.User;
import com.yingjie.yingjieauth.mapper.UserMapper;
import com.yingjie.yingjieauth.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public UserAuthBo userAuth(Integer userId) {
        User user = userMapper.userAuth(userId);
        UserAuthBo userAuthBo = new UserAuthBo();
        userAuthBo.setUserStatus(user.getStatus());
        return userAuthBo;
    }
}
